package com.wangdao.wechatmall.util;

import com.wangdao.wechatmall.bean.pojo.Order;

/**
 * @author liyongqiang
 * CreateDate 2021/7/12 14:14
 */


public class OrderStatusTextUtils {
    public static String getOrderStatusText(Order order){
        String orderStatusText = null;
        if (order.getOrderStatus() == 101){
            orderStatusText = "未付款";
        }else if (order.getOrderStatus() == 102){
            orderStatusText = "已取消";
        }else if (order.getOrderStatus() == 103){
            orderStatusText = "已取消(系统)";
        }else if (order.getOrderStatus() == 201){
            orderStatusText = "已付款";
        }else if (order.getOrderStatus() == 202){
            orderStatusText = "订单取消，退款中";
        }else if (order.getOrderStatus() == 203){
            orderStatusText = "已退款";
        }else if (order.getOrderStatus() == 301){
            orderStatusText = "已发货";
        }else if (order.getOrderStatus() == 401){
            orderStatusText = "已收货";
        }else if (order.getOrderStatus() == 402){
            orderStatusText = "已收货(系统)";
        }
        return orderStatusText;
    }
}
